math/big.Float.mant (field)
164 uses
math/big (current package)
float.go#L71: mant nat
float.go#L219: return uint(len(x.mant))*_W - x.mant.trailingZeroBits()
float.go#L377: m := len(x.mant)
float.go#L382: if x.mant[m-1]&msb == 0 {
float.go#L383: return fmt.Sprintf("msb not set in last word %#x of %s", x.mant[m-1], x.Text('p', 0))
float.go#L412: m := uint32(len(z.mant)) // present mantissa length in words
float.go#L434: rbit := z.mant.bit(r) & 1 // rounding bit; be safe and ensure it's a single bit
float.go#L438: sbit = z.mant.sticky(r)
float.go#L445: copy(z.mant, z.mant[m-n:]) // move n last words to front
float.go#L446: z.mant = z.mant[:n]
float.go#L465: inc = rbit != 0 && (sbit != 0 || z.mant[0]&lsb != 0)
float.go#L483: if addVW(z.mant, z.mant, lsb) != 0 {
float.go#L492: shrVU(z.mant, z.mant, 1)
float.go#L495: z.mant[n-1] |= msb
float.go#L501: z.mant[0] &^= lsb - 1
float.go#L521: z.mant = z.mant.setUint64(x << uint(s))
float.go#L572: z.mant = z.mant.setUint64(1<<63 | math.Float64bits(fmant)<<11)
float.go#L615: z.mant = z.mant.set(x.abs)
float.go#L616: fnorm(z.mant)
float.go#L664: z.mant = z.mant.set(x.mant)
float.go#L689: z.mant = z.mant.set(x.mant)
float.go#L759: u := msb64(x.mant) >> (64 - uint32(x.exp))
float.go#L804: i := int64(msb64(x.mant) >> (64 - uint32(x.exp)))
float.go#L878: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L930: mant = msb32(r.mant) >> uint(fbits-p)
float.go#L934: mant = msb32(r.mant) >> ebits & (1<<mbits - 1) // cut off msb (implicit 1 bit)
float.go#L998: if p < 0 /* m <= 0.25 */ || p == 0 && x.mant.sticky(uint(len(x.mant))*_W-1) == 0 /* m == 0.5 */ {
float.go#L1050: mant = msb64(r.mant) >> uint(fbits-p)
float.go#L1054: mant = msb64(r.mant) >> ebits & (1<<mbits - 1) // cut off msb (implicit 1 bit)
float.go#L1103: allBits := uint(len(x.mant)) * _W
float.go#L1115: z.abs = z.abs.shl(x.mant, exp-allBits)
float.go#L1117: z.abs = z.abs.set(x.mant)
float.go#L1119: z.abs = z.abs.shr(x.mant, allBits-exp)
float.go#L1150: allBits := int32(len(x.mant)) * _W
float.go#L1155: z.a.abs = z.a.abs.shl(x.mant, uint(x.exp-allBits))
float.go#L1159: z.a.abs = z.a.abs.set(x.mant)
float.go#L1163: z.a.abs = z.a.abs.set(x.mant)
float.go#L1201: if len(x.mant) == 0 {
float.go#L1204: if len(y.mant) == 0 {
float.go#L1229: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1230: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1232: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1239: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1240: z.mant = z.mant.add(x.mant, t)
float.go#L1242: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1243: z.mant = z.mant.add(x.mant, z.mant)
float.go#L1247: z.mant = z.mant.add(x.mant, y.mant)
float.go#L1250: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1251: z.mant = z.mant.add(t, y.mant)
float.go#L1253: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1254: z.mant = z.mant.add(z.mant, y.mant)
float.go#L1260: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1276: ex := int64(x.exp) - int64(len(x.mant))*_W
float.go#L1277: ey := int64(y.exp) - int64(len(y.mant))*_W
float.go#L1279: al := alias(z.mant, x.mant) || alias(z.mant, y.mant)
float.go#L1284: t := nat(nil).shl(y.mant, uint(ey-ex))
float.go#L1285: z.mant = t.sub(x.mant, t)
float.go#L1287: z.mant = z.mant.shl(y.mant, uint(ey-ex))
float.go#L1288: z.mant = z.mant.sub(x.mant, z.mant)
float.go#L1292: z.mant = z.mant.sub(x.mant, y.mant)
float.go#L1295: t := nat(nil).shl(x.mant, uint(ex-ey))
float.go#L1296: z.mant = t.sub(t, y.mant)
float.go#L1298: z.mant = z.mant.shl(x.mant, uint(ex-ey))
float.go#L1299: z.mant = z.mant.sub(z.mant, y.mant)
float.go#L1305: if len(z.mant) == 0 {
float.go#L1313: z.setExpAndRound(ex+int64(len(z.mant))*_W-fnorm(z.mant), 0)
float.go#L1332: z.mant = z.mant.sqr(x.mant)
float.go#L1334: z.mant = z.mant.mul(x.mant, y.mant)
float.go#L1336: z.setExpAndRound(e-fnorm(z.mant), 0)
float.go#L1353: xadj := x.mant
float.go#L1354: if d := n - len(x.mant) + len(y.mant); d > 0 {
float.go#L1356: xadj = make(nat, len(x.mant)+d)
float.go#L1357: copy(xadj[d:], x.mant)
float.go#L1365: d := len(xadj) - len(y.mant)
float.go#L1369: z.mant, r = z.mant.div(nil, xadj, y.mant)
float.go#L1370: e := int64(x.exp) - int64(y.exp) - int64(d-len(z.mant))*_W
float.go#L1381: z.setExpAndRound(e-fnorm(z.mant), sbit)
float.go#L1401: i := len(x.mant)
float.go#L1402: j := len(y.mant)
float.go#L1407: xm = x.mant[i]
float.go#L1411: ym = y.mant[j]
floatconv.go#L50: z.mant, b, fcount, err = z.mant.scan(r, base, true)
floatconv.go#L64: if len(z.mant) == 0 {
floatconv.go#L85: exp2 := int64(len(z.mant))*_W - fnorm(z.mant)
floatmarsh.go#L37: if len(x.mant) < n {
floatmarsh.go#L38: n = len(x.mant)
floatmarsh.go#L55: x.mant[len(x.mant)-n:].bytes(buf[10:]) // cut off unused trailing words
floatmarsh.go#L94: z.mant = z.mant.setBytes(buf[10:])
ftoa.go#L96: d.init(x.mant, int(x.exp)-x.mant.bitLen())
ftoa.go#L186: mant := nat(nil).set(x.mant)
ftoa.go#L329: m := x.mant
ftoa.go#L330: switch w := uint32(len(x.mant)) * _W; {
ftoa.go#L380: m := x.mant
ftoa.go#L381: switch w := uint(len(x.mant)) * _W; {
ftoa.go#L431: m := x.mant
sqrt.go#L128: z.mant = z.mant.make(int(prec2/_W) * 2)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |